from django.contrib import admin
from django.urls import path, re_path, include

from django.conf import settings
from django.views.static import serve  # 静态文件代理访问模块

urlpatterns = [
    path('admin/', admin.site.urls),
    re_path(r'uploads/(?P<path>.*)', serve, {"document_root": settings.MEDIA_ROOT}),
    path('ckeditor/', include('ckeditor_uploader.urls')),
    path("home/", include("home.urls")),
    path("users/", include("users.urls")),
    path("courses/", include("courses.urls")),
    path("cart/", include("cart.urls")),
    path("orders/", include("orders.urls")),
]
